package com.city.domain.city;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Objects;

/**
 * @deprecation: 村基本信息表
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-18 13:14
 */
@Entity
@Table(name = "city_village", schema = "city", catalog = "")
public class CityVillage {
    private int villageId;//主键
    private int townId;//镇id
    private String villageName;//村名字
    private String countyLeader;//村级县领导
    private String leader;//工作组组长
    private String leaderTel;//组长电话
    private String firstSecretary;//第一书记
    private String firstSecretaryTel;//第一书记电话
    private String secretary;//支部书记
    private String secretaryTel;//支部书记电话
    private String director;//村主任
    private String directorTel;//村主任电话
    private byte isPoor;//是否平困村
    private String outPoorYear;//脱贫年度
    private byte groupCount;//自然村数
    private int mccpCount;//中共党员数量
    private double area;//幅员面积
    private int nyhjhs;//农业户籍户数
    private int nyhjrs;//农业户籍人数
    private String industry;//主要产业
    private byte njlCount;//农家乐数量
    private byte hzsCount;//合作社数量
    private BigDecimal poorRate;//贫困率
    private int doctorCount;//家庭医生户数
    private String doctorIdcard;//医生编号
    private BigDecimal collectiveIncome;//集体收入
    private byte averageIncome;//人均收入1.3以下2.3-6.3.6以上
    private byte road;//道路建设1,2,3 无规划,已启动,有
    private byte internet;//网络1,2,3 无规划,已启动,有
    private byte culture;//文化室1,2,3 无规划,已启动,有
    private byte health;//卫生室1,2,3 无规划,已启动,有
    private double allCapital;//总产业周转资金
    private String workingCapital;//周转资金详细
    private int collector;//采集人
    private int collectTime;//采集时间
    private String partyCenterImg;//党群中心图片
    private String healthImg;//卫生室图片
    private String cultureImg;//文化室图片
    private int updateTime;//
    private String lng;//经度
    private String lat;//纬度

    @Id
    @Column(name = "village_id")
    public int getVillageId() {
        return villageId;
    }

    public void setVillageId(int villageId) {
        this.villageId = villageId;
    }

    @Basic
    @Column(name = "town_id")
    public int getTownId() {
        return townId;
    }

    public void setTownId(int townId) {
        this.townId = townId;
    }

    @Basic
    @Column(name = "village_name")
    public String getVillageName() {
        return villageName;
    }

    public void setVillageName(String villageName) {
        this.villageName = villageName;
    }

    @Basic
    @Column(name = "county_leader")
    public String getCountyLeader() {
        return countyLeader;
    }

    public void setCountyLeader(String countyLeader) {
        this.countyLeader = countyLeader;
    }

    @Basic
    @Column(name = "leader")
    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    @Basic
    @Column(name = "leader_tel")
    public String getLeaderTel() {
        return leaderTel;
    }

    public void setLeaderTel(String leaderTel) {
        this.leaderTel = leaderTel;
    }

    @Basic
    @Column(name = "first_secretary")
    public String getFirstSecretary() {
        return firstSecretary;
    }

    public void setFirstSecretary(String firstSecretary) {
        this.firstSecretary = firstSecretary;
    }

    @Basic
    @Column(name = "first_secretary_tel")
    public String getFirstSecretaryTel() {
        return firstSecretaryTel;
    }

    public void setFirstSecretaryTel(String firstSecretaryTel) {
        this.firstSecretaryTel = firstSecretaryTel;
    }

    @Basic
    @Column(name = "secretary")
    public String getSecretary() {
        return secretary;
    }

    public void setSecretary(String secretary) {
        this.secretary = secretary;
    }

    @Basic
    @Column(name = "secretary_tel")
    public String getSecretaryTel() {
        return secretaryTel;
    }

    public void setSecretaryTel(String secretaryTel) {
        this.secretaryTel = secretaryTel;
    }

    @Basic
    @Column(name = "director")
    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    @Basic
    @Column(name = "director_tel")
    public String getDirectorTel() {
        return directorTel;
    }

    public void setDirectorTel(String directorTel) {
        this.directorTel = directorTel;
    }

    @Basic
    @Column(name = "is_poor")
    public byte getIsPoor() {
        return isPoor;
    }

    public void setIsPoor(byte isPoor) {
        this.isPoor = isPoor;
    }

    @Basic
    @Column(name = "out_poor_year")
    public String getOutPoorYear() {
        return outPoorYear;
    }

    public void setOutPoorYear(String outPoorYear) {
        this.outPoorYear = outPoorYear;
    }

    @Basic
    @Column(name = "group_count")
    public byte getGroupCount() {
        return groupCount;
    }

    public void setGroupCount(byte groupCount) {
        this.groupCount = groupCount;
    }

    @Basic
    @Column(name = "mccp_count")
    public int getMccpCount() {
        return mccpCount;
    }

    public void setMccpCount(int mccpCount) {
        this.mccpCount = mccpCount;
    }

    @Basic
    @Column(name = "area")
    public double getArea() {
        return area;
    }

    public void setArea(double area) {
        this.area = area;
    }

    @Basic
    @Column(name = "nyhjhs")
    public int getNyhjhs() {
        return nyhjhs;
    }

    public void setNyhjhs(int nyhjhs) {
        this.nyhjhs = nyhjhs;
    }

    @Basic
    @Column(name = "nyhjrs")
    public int getNyhjrs() {
        return nyhjrs;
    }

    public void setNyhjrs(int nyhjrs) {
        this.nyhjrs = nyhjrs;
    }

    @Basic
    @Column(name = "industry")
    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    @Basic
    @Column(name = "njl_count")
    public byte getNjlCount() {
        return njlCount;
    }

    public void setNjlCount(byte njlCount) {
        this.njlCount = njlCount;
    }

    @Basic
    @Column(name = "hzs_count")
    public byte getHzsCount() {
        return hzsCount;
    }

    public void setHzsCount(byte hzsCount) {
        this.hzsCount = hzsCount;
    }

    @Basic
    @Column(name = "poor_rate")
    public BigDecimal getPoorRate() {
        return poorRate;
    }

    public void setPoorRate(BigDecimal poorRate) {
        this.poorRate = poorRate;
    }

    @Basic
    @Column(name = "doctor_count")
    public int getDoctorCount() {
        return doctorCount;
    }

    public void setDoctorCount(int doctorCount) {
        this.doctorCount = doctorCount;
    }

    @Basic
    @Column(name = "doctor_idcard")
    public String getDoctorIdcard() {
        return doctorIdcard;
    }

    public void setDoctorIdcard(String doctorIdcard) {
        this.doctorIdcard = doctorIdcard;
    }

    @Basic
    @Column(name = "collective_income")
    public BigDecimal getCollectiveIncome() {
        return collectiveIncome;
    }

    public void setCollectiveIncome(BigDecimal collectiveIncome) {
        this.collectiveIncome = collectiveIncome;
    }

    @Basic
    @Column(name = "average_income")
    public byte getAverageIncome() {
        return averageIncome;
    }

    public void setAverageIncome(byte averageIncome) {
        this.averageIncome = averageIncome;
    }

    @Basic
    @Column(name = "road")
    public byte getRoad() {
        return road;
    }

    public void setRoad(byte road) {
        this.road = road;
    }

    @Basic
    @Column(name = "internet")
    public byte getInternet() {
        return internet;
    }

    public void setInternet(byte internet) {
        this.internet = internet;
    }

    @Basic
    @Column(name = "culture")
    public byte getCulture() {
        return culture;
    }

    public void setCulture(byte culture) {
        this.culture = culture;
    }

    @Basic
    @Column(name = "health")
    public byte getHealth() {
        return health;
    }

    public void setHealth(byte health) {
        this.health = health;
    }

    @Basic
    @Column(name = "all_capital")
    public double getAllCapital() {
        return allCapital;
    }

    public void setAllCapital(double allCapital) {
        this.allCapital = allCapital;
    }

    @Basic
    @Column(name = "working_capital")
    public String getWorkingCapital() {
        return workingCapital;
    }

    public void setWorkingCapital(String workingCapital) {
        this.workingCapital = workingCapital;
    }

    @Basic
    @Column(name = "collector")
    public int getCollector() {
        return collector;
    }

    public void setCollector(int collector) {
        this.collector = collector;
    }

    @Basic
    @Column(name = "collect_time")
    public int getCollectTime() {
        return collectTime;
    }

    public void setCollectTime(int collectTime) {
        this.collectTime = collectTime;
    }

    @Basic
    @Column(name = "party_center_img")
    public String getPartyCenterImg() {
        return partyCenterImg;
    }

    public void setPartyCenterImg(String partyCenterImg) {
        this.partyCenterImg = partyCenterImg;
    }

    @Basic
    @Column(name = "health_img")
    public String getHealthImg() {
        return healthImg;
    }

    public void setHealthImg(String healthImg) {
        this.healthImg = healthImg;
    }

    @Basic
    @Column(name = "culture_img")
    public String getCultureImg() {
        return cultureImg;
    }

    public void setCultureImg(String cultureImg) {
        this.cultureImg = cultureImg;
    }

    @Basic
    @Column(name = "update_time")
    public int getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(int updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "lng")
    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    @Basic
    @Column(name = "lat")
    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CityVillage that = (CityVillage) o;
        return villageId == that.villageId &&
                townId == that.townId &&
                isPoor == that.isPoor &&
                groupCount == that.groupCount &&
                mccpCount == that.mccpCount &&
                Double.compare(that.area, area) == 0 &&
                nyhjhs == that.nyhjhs &&
                nyhjrs == that.nyhjrs &&
                njlCount == that.njlCount &&
                hzsCount == that.hzsCount &&
                doctorCount == that.doctorCount &&
                averageIncome == that.averageIncome &&
                road == that.road &&
                internet == that.internet &&
                culture == that.culture &&
                health == that.health &&
                Double.compare(that.allCapital, allCapital) == 0 &&
                collector == that.collector &&
                collectTime == that.collectTime &&
                updateTime == that.updateTime &&
                Objects.equals(villageName, that.villageName) &&
                Objects.equals(countyLeader, that.countyLeader) &&
                Objects.equals(leader, that.leader) &&
                Objects.equals(leaderTel, that.leaderTel) &&
                Objects.equals(firstSecretary, that.firstSecretary) &&
                Objects.equals(firstSecretaryTel, that.firstSecretaryTel) &&
                Objects.equals(secretary, that.secretary) &&
                Objects.equals(secretaryTel, that.secretaryTel) &&
                Objects.equals(director, that.director) &&
                Objects.equals(directorTel, that.directorTel) &&
                Objects.equals(outPoorYear, that.outPoorYear) &&
                Objects.equals(industry, that.industry) &&
                Objects.equals(poorRate, that.poorRate) &&
                Objects.equals(doctorIdcard, that.doctorIdcard) &&
                Objects.equals(collectiveIncome, that.collectiveIncome) &&
                Objects.equals(workingCapital, that.workingCapital) &&
                Objects.equals(partyCenterImg, that.partyCenterImg) &&
                Objects.equals(healthImg, that.healthImg) &&
                Objects.equals(cultureImg, that.cultureImg) &&
                Objects.equals(lng, that.lng) &&
                Objects.equals(lat, that.lat);
    }

    @Override
    public int hashCode() {

        return Objects.hash(villageId, townId, villageName, countyLeader, leader, leaderTel, firstSecretary, firstSecretaryTel, secretary, secretaryTel, director, directorTel, isPoor, outPoorYear, groupCount, mccpCount, area, nyhjhs, nyhjrs, industry, njlCount, hzsCount, poorRate, doctorCount, doctorIdcard, collectiveIncome, averageIncome, road, internet, culture, health, allCapital, workingCapital, collector, collectTime, partyCenterImg, healthImg, cultureImg, updateTime, lng, lat);
    }
}
